package top.tenebrous.yzl.chat.service.system;

import cn.dev33.satoken.stp.SaTokenInfo;
import top.tenebrous.yzl.basic.model.CtsResult;
import top.tenebrous.yzl.basic.model.YzlChatResult;
import top.tenebrous.yzl.chat.model.LoginDTO;
import top.tenebrous.yzl.chat.model.LoginResultDto;
import top.tenebrous.yzl.chat.model.MemberLoginInfo;

/**
 * @Classname ISysLoginService
 * @Description TODO
 * @Date 2023/11/29 10:52 PM
 * @Created by zhangya
 */
public interface ISysLoginService {

  /**
   * 用户登录接口
   *
   * @param loginDTO    登录信息
   * @return  token信息
   */
  YzlChatResult<SaTokenInfo> login(LoginDTO loginDTO);

  /**
   * 登录后获取用户信息
   *
   * @param userInfo
   * @return
   */
  YzlChatResult<LoginResultDto> getLoginInfo(MemberLoginInfo userInfo);

}
